export function loadPage(page,resolve) {
	let dir=page.substring(0,page.lastIndexOf("/"));
	let name=page.substring(page.lastIndexOf("/"));
	if (dir.startsWith("/developer")) return require(["@/views/developer"+page.replace("/developer","")], resolve);
	else if (dir.startsWith("/ruoyi")) return require(["@/views/ruoyi"+page.replace("/ruoyi","")], resolve);
	else if (dir=="/crm/autooffice") return require(["@/views/crm/autooffice"+name], resolve);
	else if (dir=="/crm/main") return require(["@/views/crm/main"+name], resolve);
	else if (dir=="/crm/produce") return require(["@/views/crm/produce"+name], resolve);
	else if (dir=="/crm/product") return require(["@/views/crm/product"+name], resolve);
	else if (dir=="/crm/sale") return require(["@/views/crm/sale"+name], resolve);
	else if (dir=="/crm/supplychainmana") return require(["@/views/crm/supplychainmana"+name], resolve);
	else if (dir=="/crm/sale/contacts") return require(["@/views/crm/sale/contacts"+name], resolve);
	else if (dir=="/crm/sale/contract") return require(["@/views/crm/sale/contract"+name], resolve);
	else if (dir=="/crm/sale/potential") return require(["@/views/crm/sale/potential"+name], resolve);

}